home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / hearts.swf / scripts / DefineSprite_638 / frame_1 / DoAction_6.as < prev    next >
Encoding:
Text File  |  2011-12-21  |  691 b   |  29 lines

  1. this.cHeartPar = function(x, y, s)
  2. {
  3.    var t = this;
  4.    var i = 0;
  5.    while(i < 20)
  6.    {
  7.       t.attachMovie("hPar","hp" + t.hd,t.hd);
  8.       var n = t["hp" + t.hd];
  9.       n._x = x;
  10.       n._y = y;
  11.       n._rotation = random(360);
  12.       n._xscale = n._yscale = (random(80) + 10) * s / 100;
  13.       n.gotoAndPlay(random(10) + 1);
  14.       n.graphic.graphic._xscale = n.graphic.graphic._yscale = random(100) + 100;
  15.       n.graphic.graphic._rotation = random(360);
  16.       t.addD("h");
  17.       i++;
  18.    }
  19. };
  20. this.cTremor = function(x, y)
  21. {
  22.    var t = this;
  23.    t.attachMovie("tremor","t" + t.trd,t.trd);
  24.    var n = t["t" + t.trd];
  25.    n._x = x;
  26.    n._y = y;
  27.    t.addD("tr");
  28. };
  29.